"""
@Project:study_platform
@File:baiduapi.py
@Author:韩晓雷
@Date:16:11
"""

import requests
import redis
import base64
import traceback


class Baidu:
    def __init__(self):
        self.apikey = "X6r8sNU4Zq3Pzn09YGYqUFZc"
        self.apisecret = "mbX36TmS0k8FM3xcZSSMr7FVUbGVfZxr"

        self.redis = redis.Redis(decode_responses=True)

    def ocr(self, filename="./20.jpg"):
        request_url = "https://aip.baidubce.com/rpc/2.0/nlp/v1/keyword"





